<?php

/**
 * Photo form.
 *
 * @package    maiphoto
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class PhotoForm extends BasePhotoForm {

    public function configure() {

        unset($this['created_at'], $this['updated_at']);
        $this->widgetSchema['link'] = new sfWidgetFormInputFile(array(
                    'label' => 'image',
                ));

        $this->validatorSchema['link'] = new sfValidatorFile(array(
                    'required'
                    => false,
                    'path'
                    => sfConfig::get('sf_upload_dir') . '/img',
                    'mime_types' => 'web_images',
                ));
        //parent::setup();
    }

}
